package com.xxh.video.service;

import com.xxh.dataaccess.entity.Movie;
import com.xxh.dataaccess.entity.User;
import com.xxh.dataaccess.entity.Video;
import com.xxh.dataaccess.page.PageResult;
import com.xxh.video.dto.QueryParam;
import org.springframework.data.domain.Page;

import java.util.List;

public interface VideoService {

    PageResult SelectVideosByCategory(QueryParam queryParam);


    Page<Video> pagingVideos(Integer cur , Integer size);

    List<Video> getTop20ByCategoryName(String categoryNames);

    void AddLikeNum(String bv);

    PageResult<Movie>  PageMovieByCategory(String cname,Integer cur,Integer size);

    Video getVideoByBv(String bv);

    boolean SaveVideo(Video v);

    User getVideoUp(String bv);

    int update(Video v);

    List<Video> getSimairVideo(String bv);


    List<Video> getVideoByUid(Long toIntExact);

    public List<Video> getTopViewVideos();

}
